package MyBinaryTree;

public class BiTreeNode {
    // 构造二叉树的结点 类

    // 结点存放的数值
    public Object data;
    // left 结点
    public BiTreeNode lchild;
    // right 结点
    public BiTreeNode rchild;

    public BiTreeNode() {
        this(null, null, null);
    }

    public BiTreeNode(Object data) {
        this(data, null, null);
    }

    public BiTreeNode(Object data, BiTreeNode lchild, BiTreeNode rchild) {
        this.data = data;
        this.lchild = lchild;
        this.rchild = rchild;
    }
}
